package cn.chinaiptv.apkmanager.test;

import java.util.ArrayList;

import cn.chinaiptv.apkmanager.bean.Epgnotification;
import cn.chinaiptv.apkmanager.dao.EPGNotificationDao;

public class HibernateDemo {

	public static void main(String[] args) {
		// Epgrecomm bean = new Epgrecomm(2, "111", "222", "2222", "", "ddd",
		// // "1111", "1111", "dddd", 1, "222", "222", 1, "dddd", "eeee");
		// // // // EPGRecommBean bean = new EPGRecommBean();
		// // boolean result = EPGRecommDao.save(bean);
		// // System.out.println(result);
		// ArrayList<Epgrecomm> beans = EPGRecommDao.find(1, 10);
		// // System.out.println(beans.size());
		// Epgrecomm.getPostJson(beans);
		// EPG背景图测试
		// Epgbg epgbg = new Epgbg(1, "", "111", "dddd", "",
		// "http://www.baidu.com");
		// boolean result = EPGbgDao.save(epgbg);
		// System.out.println(result);
		// ArrayList<Epgbg> beas = EPGbgDao.find(1, 10);
		// // System.out.println(beas.toString());
		// String res = Epgbg.getPostJson(beas.get(0));
		// System.out.println(res);
		// Epgnotification epgnotification = new Epgnotification(1, "", "111",
		// "ddd", "", "ddd", 1, 1, "hjttp");
		// boolean result = EPGNotificationDao.save(epgnotification);
		// System.out.println(result);
		ArrayList<Epgnotification> beans = EPGNotificationDao.find(1, 10);
		System.out.println(beans.toString());
		String res = Epgnotification.getPostJson(beans.get(0));
		System.out.println(res);
	}
}
